package com.community.property.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.community.common.annotation.Excel;
import com.community.common.core.domain.BaseEntity;

/**
 * 物业公告对象 notice
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class Notice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long noticeId;

    /** 社区ID */
    @Excel(name = "社区ID")
    private Long communityId;
    /** 社区ID */
    @Excel(name = "社区名称")
    private String name;

    /** 通知标题 */
    @Excel(name = "通知标题")
    private String title;

    /** 通知类型 */
    @Excel(name = "通知类型")
    private String noticeType;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 附件(JSON数组) */
    @Excel(name = "附件(JSON数组)")
    private String attachments;

    /** 发布人 */
    @Excel(name = "发布人")
    private String publisher;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 接受范围(全体楼宇/指定楼宇) */
    @Excel(name = "接受范围(全体楼宇/指定楼宇)")
    private String recipientScope;

    /** 状态(草稿/已发布/已过期) */
    @Excel(name = "状态(草稿/已发布/已过期)")
    private Long status;

    /** 查看次数 */
    @Excel(name = "查看次数")
    private Long viewCount;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long isDeleted;

    public String  getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNoticeId(Long noticeId)
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() 
    {
        return noticeId;
    }

    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setNoticeType(String noticeType) 
    {
        this.noticeType = noticeType;
    }

    public String getNoticeType() 
    {
        return noticeType;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setAttachments(String attachments) 
    {
        this.attachments = attachments;
    }

    public String getAttachments() 
    {
        return attachments;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setRecipientScope(String recipientScope) 
    {
        this.recipientScope = recipientScope;
    }

    public String getRecipientScope() 
    {
        return recipientScope;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noticeId", getNoticeId())
            .append("communityId", getCommunityId())
            .append("name", getName())
            .append("title", getTitle())
            .append("noticeType", getNoticeType())
            .append("content", getContent())
            .append("attachments", getAttachments())
            .append("publisher", getPublisher())
            .append("publishTime", getPublishTime())
            .append("recipientScope", getRecipientScope())
            .append("status", getStatus())
            .append("viewCount", getViewCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
